package testcase.iotest;

import card.Cardset;
import junit.framework.TestCase;
import io.*;

public class IOCommandFactoryTest extends TestCase {

	private IOCommandFactory commandFactory;

	public IOCommandFactoryTest() {
		commandFactory = new IOCommandFactory(null);
	}

	public void setUp() {
	}

	public void tearDown() {
	}

	public void testCreation() {
		boolean successful = true;

		try {
			commandFactory.createCardInputCommand(new Cardset(3));
			commandFactory.createConfirmPlayCommand(new Cardset(3));
			commandFactory.createContinueGameCommand("test");
			commandFactory.createEndApplicationMessageCommand();
			commandFactory.createEndGameMessageCommand();
			commandFactory.createHandDisplayCommand(new Cardset(3), "test");
			commandFactory.createNewRoundMessageCommand("test");
			commandFactory.createNotBiggerPlayMessageCommand();
			commandFactory.createPlayerLandlordRatingCommand("test",
					new Cardset(3));

		} catch (Exception e) {
			successful = false;
		}

		assertEquals(true, successful);
	}
}
